import request from '@/utils/request'
/**
 *
 * @returns 获取我的频道
 */
export const reqChannelEidt = () => {
  return request({
    method: 'get',
    url: '/v1_0/user/channels'
  })
}
/**
 *
 * @returns 获取所以频道
 */
export const reqAllChannels = () => {
  return request({
    method: 'get',
    url: '/v1_0/channels'
  })
}
/**
 *
 * @param {*} channels 数组包含对象包含{[id:id,seq:index]}
 * @returns  添加频道
 */
export const reqAddChannel = (channels) => {
  return request({
    method: 'put',
    url: '/v1_0/user/channels',
    data: {
      channels
    }
  })
}
// export const reqDelChannel = (id) => {
//   return request({
//     method: 'delete',
//     url: ' /v1_0/user/channels/:target',
//     params: {
//       target: id
//     }
//   })
// }
